package map;

import java.io.DataOutputStream;
import java.util.Scanner;

public class ClientConnetion implements Runnable
{
	Scanner in;
	DataOutputStream out;
	
	public ClientConnetion(Scanner in, DataOutputStream out, MapLayer layer)
	{
		this.in = in;
		this.out = out;
	}
	
	@Override
	public void run()
	{
		listen();
	}

	
	public void listen()
	{
		while(true)
		{
			String incomingMsg = in.nextLine();
			
			ClientMap.serverMsg = incomingMsg;
		}
		
	}
}
